import axios from 'axios'

let base = 'http://localhost:8080';
let base2 = 'http://localhost:8081';

  export const post = (url, params) => {
    return axios({
      method: 'post',
      url: `${base}${url}`,
      data: params,
    });
  }
  
  export const localpost = (url, params) => {
    return axios({
      method: 'post',
      url: `${base2}${url}`,
      data: params,
    });
  }

  export const localget = (url, params) => {
    return axios({
      method: 'get',
      url: `${base2}${url}`,
      params: {gid:params},
    });
  }